using System;
using System.Collections.Generic;
using Kogel.Dapper.Extension.Attributes;

namespace Sxb.CustomerService
{
	/// <summary> 
	///  
	/// </summary> 
	[Serializable]
	[Display(Rename = "OrderDetial")]
	public partial class OrderDetial
	{
		/// <summary> 
		/// 原有价格 
		/// </summary> 
		[Display("id")] 
		public Guid Id { get; set; }

		/// <summary> 
		/// 订单id 
		/// </summary> 
		[Display("orderid")] 
		public Guid Orderid { get; set; }

		/// <summary> 
		/// 商品id 
		/// </summary> 
		[Display("productid")] 
		public Guid Productid { get; set; }

		/// <summary> 
		/// 商品类型  1课程  2好物 
		/// </summary> 
		[Display("producttype")] 
		public byte Producttype { get; set; }

		/// <summary> 
		/// 商品名字 
		/// </summary> 
		[Display("name")] 
		public string Name { get; set; }

		/// <summary> 
		/// 购买数量 
		/// </summary> 
		[Display("number")] 
		public short Number { get; set; }

		/// <summary> 
		/// 价格 
		/// </summary> 
		[Display("price")] 
		public decimal Price { get; set; }

		/// <summary> 
		/// 下单时的商品原价 
		/// </summary> 
		public decimal Origprice { get; set; }

		/// <summary> 
		/// 备注 
		/// </summary> 
		[Display("remark")] 
		public string Remark { get; set; }

		/// <summary> 
		/// 跟order的status一样 
		/// </summary> 
		[Display("status")] 
		public int Status { get; set; }

		/// <summary> 
		/// 商品内容json '{}' 
		/// </summary> 
		[Display("ctn")] 
		public string Ctn { get; set; }

		/// <summary> 
		/// 孩子归档json '[{}]' 
		/// </summary> 
		public string ChildArchives { get; set; }

		/// <summary> 
		/// 课程|好物id 
		/// </summary> 
		[Display("courseid")] 
		public Guid Courseid { get; set; }

		/// <summary> 
		/// 订单来源类型   1微信合作院校库 
		/// </summary> 
		public byte SourceType { get; set; }

		/// <summary> 
		/// 来源的id（例如学部id） 
		/// </summary> 
		public Guid? SourceId { get; set; }

		/// <summary> 
		/// 来源的扩展字段 
		/// </summary> 
		public string SourceExtend { get; set; }

		/// <summary> 
		/// </summary> 
		public DateTime? RefundTime { get; set; }

		/// <summary> 
		/// </summary> 
		public Guid? RefundUserId { get; set; }

		/// <summary> 
		/// 退款数量 
		/// </summary> 
		public short RefundCount { get; set; }

		/// <summary> 
		/// 退货数量 
		/// </summary> 
		public short ReturnCount { get; set; }

		/// <summary> 
		/// </summary> 
		public decimal Payment { get; set; }


	}
}